---
layout: default
categories: plugin
title: Leaflet Locate
prefix: leaflet-locatecontrol
description: Adds a button to your map that finds the user's location using the HTML5 Geolocation API.
tags:
  - mit
code: https://github.com/domoritz/leaflet-locatecontrol
license: MIT
---
<script src='{{site.tileApi}}/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.min.js'></script>
<link href='{{site.tileApi}}/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.mapbox.css' rel='stylesheet' />
<!--[if lt IE 9]>
  <link href='{{site.tileApi}}/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.ie.css' rel='stylesheet' />
<![endif]-->
<link href='{{site.tileApi}}/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/css/font-awesome.min.css' rel='stylesheet' />
